package com.wh1200.mybatis.xmlless.model

import org.springframework.data.domain.PageRequest
import org.springframework.data.domain.Sort

/**
 *
 * @author 吴昊
 * @date 2023/12/16 21:30
 * @since v4.0.0
 * @version 1.0
 */
class TotalPageRequest(
    page: Int, size: Int, sort: Sort
) : PageRequest(page, size, sort) {

  private var total: Long = 0

  fun setTotal(total: Long) {
    this.total = total
  }

  fun getTotal(): Long {
    return total
  }

}
